package com.holyant.report.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.domain.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 渠道动销统计dto
 * 
 * @author fkmalls
 * @date 2021-09-13
 */
@Data
@ApiModel("渠道动销统计")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RptCustomerGmvDto extends BaseDto {

    private static final long serialVersionUID = 1L;

    /** 销量 */
    @Excel(name = "销量")
    @ApiModelProperty(value = "销量")
    private BigDecimal salesQty;

    /** 销售额 */
    @Excel(name = "销售额")
    @ApiModelProperty(value = "销售额")
    private BigDecimal salesAmount;

    /** 账期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "账期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "账期")
    private LocalDate accountDate;

    /** 客户id */
    @Excel(name = "客户id")
    @ApiModelProperty(value = "客户id")
    private Long customerId;

    /** 客户名称 */
    @Excel(name = "客户名称")
    @ApiModelProperty(value = "客户名称")
    private String customerName;

    /** 备注 */
    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    /** 销量 */
    @Excel(name = "总销量")
    @ApiModelProperty(value = "总销量")
    private BigDecimal sumSalesQty;

    /** 销售额 */
    @Excel(name = "总销售额")
    @ApiModelProperty(value = "总销售额")
    private BigDecimal sumSalesAmount;

}
